package com.itljm.cxrMarket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 卫生处罚记录表
 * @TableName hygiene_penalties
 */
@TableName(value ="hygiene_penalties")
@Data
public class HygienePenalties implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer violationId; // 关联违规id
    private Integer merchantId; // 关联商户id
    private String penaltyType; // 处罚类型
    private String penaltyAmount; // 罚款金额
    private String penaltyDetails; // 处罚详情
    private Integer issuedById; // 处罚决定人id
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date issueTime; // 处罚时间
    private Integer status; // 处罚状态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private String merchantName; // 商户名称
    @TableField(exist = false)
    private String issuedByName; // 处罚决定人姓名
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}